1107df9ab68702816ab016974ba2dd7b7f44cca1,modules/elasticsearch/src/main/java/org/elasticsearch/index/query/support/MapperQueryParser.java,MapperQueryParser,getFuzzyQuery,#String#String#number#,116
Before Change
if (mapperService != null) {
MapperService.SmartNameFieldMappers fieldMappers = mapperService.smartName(field);
if (fieldMappers != null) {
if (fieldMappers.fieldMappers().mapper() != null) {
indexedNameField = fieldMappers.fieldMappers().mapper().names().indexName();
}
return wrapSmartNameQuery(super.getFuzzyQuery(indexedNameField, termStr, minSimilarity), fieldMappers, filterCache);
}
After Change
if (mapperService != null) {
MapperService.SmartNameFieldMappers fieldMappers = mapperService.smartName(field);
if (fieldMappers != null) {
currentMapper = fieldMappers.fieldMappers().mapper();
if (currentMapper != null) {
indexedNameField = currentMapper.names().indexName();
}
return wrapSmartNameQuery(super.getFuzzyQuery(indexedNameField, termStr, minSimilarity), fieldMappers, filterCache);
}